"""
Defines the blueprint for the portfolios
"""
from flask import Blueprint
from flask_restful import Api

from resources import PortfolioResource

PORTFOLIO_BLUEPRINT = Blueprint("portfolio", __name__)
Api(PORTFOLIO_BLUEPRINT).add_resource(
    PortfolioResource, "/portfolio/<string:code>"  #http://127.0.0.1:3000/api/portfolio/000002
)
